package utils;

import bean.quanpailie;
import lianbiao.ListNode;

import java.sql.Array;
import java.util.*;
//[5,3,8,3,2,5]
//[3,3,5,4,4,4]
public class Test {
    public static void main(String[] args) {
   PriorityQueue<Integer> p=new PriorityQueue<>((Integer e,Integer e1)->{return e-e1;});
   p.add(3);
   p.add(5);
   p.add(1);
  HashSet<Integer> h=new HashSet<>();
   Iterator iterator=h.iterator();
   Stack stack=new Stack();
   
   while(iterator.hasNext()){
       System.out.println(iterator.next());
   }
        System.out.println(p.peek());
    }
}
